<?php

// gal_id
// gal_des
// gal_img_pri
// gal_pub

?>
<?php if ($galerias->Visible) { ?>
<table id="t_galerias" class="ewGrid"><tr><td>
<table id="tbl_galeriasmaster" class="table table-bordered table-striped">
	<tbody>
<?php if ($galerias->gal_id->Visible) { // gal_id ?>
		<tr id="r_gal_id">
			<td><?php echo $galerias->gal_id->FldCaption() ?></td>
			<td<?php echo $galerias->gal_id->CellAttributes() ?>>
<span id="el_galerias_gal_id" class="control-group">
<span<?php echo $galerias->gal_id->ViewAttributes() ?>>
<?php echo $galerias->gal_id->ListViewValue() ?></span>
</span>
</td>
		</tr>
<?php } ?>
<?php if ($galerias->gal_des->Visible) { // gal_des ?>
		<tr id="r_gal_des">
			<td><?php echo $galerias->gal_des->FldCaption() ?></td>
			<td<?php echo $galerias->gal_des->CellAttributes() ?>>
<span id="el_galerias_gal_des" class="control-group">
<span<?php echo $galerias->gal_des->ViewAttributes() ?>>
<?php echo $galerias->gal_des->ListViewValue() ?></span>
</span>
</td>
		</tr>
<?php } ?>
<?php if ($galerias->gal_img_pri->Visible) { // gal_img_pri ?>
		<tr id="r_gal_img_pri">
			<td><?php echo $galerias->gal_img_pri->FldCaption() ?></td>
			<td<?php echo $galerias->gal_img_pri->CellAttributes() ?>>
<span id="el_galerias_gal_img_pri" class="control-group">
<span<?php echo $galerias->gal_img_pri->ViewAttributes() ?>>
<?php if ($galerias->gal_img_pri->LinkAttributes() <> "") { ?>
<?php if (!empty($galerias->gal_img_pri->Upload->DbValue)) { ?>
<?php echo $galerias->gal_img_pri->ListViewValue() ?>
<?php } elseif (!in_array($galerias->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($galerias->gal_img_pri->Upload->DbValue)) { ?>
<?php echo $galerias->gal_img_pri->ListViewValue() ?>
<?php } elseif (!in_array($galerias->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</span>
</span>
</td>
		</tr>
<?php } ?>
<?php if ($galerias->gal_pub->Visible) { // gal_pub ?>
		<tr id="r_gal_pub">
			<td><?php echo $galerias->gal_pub->FldCaption() ?></td>
			<td<?php echo $galerias->gal_pub->CellAttributes() ?>>
<span id="el_galerias_gal_pub" class="control-group">
<span<?php echo $galerias->gal_pub->ViewAttributes() ?>>
<?php echo $galerias->gal_pub->ListViewValue() ?></span>
</span>
</td>
		</tr>
<?php } ?>
	</tbody>
</table>
</td></tr></table>
<?php } ?>
